#include<iostream>
using namespace std;
int main()
{
    int n,sum=0;
    cout<<"Enter number of elements in the array:";
    cin>>n;
    int a[n];
    cout<<"Enter elements of array:";
    for(int i=0; i<n;i++)
        {
            cin>>a[i];
            sum+=a[i];
        }
    cout<<"Sum of elements of array:"<<sum;
    return 0;
}
